//
//  HYGrowingUpFilesPicturesCell.m
//  child
//
//  Created by lijianguomac on 13-10-2.
//  Copyright (c) 2013年 lijianguomac. All rights reserved.
//

#import "HYGrowingUpFilesPicturesCell.h"
#import "UIImageView+WebCache.h"

@implementation HYGrowingUpFilesPicturesCell

@synthesize ivLeft,ivMiddle,ivRight,lblTitle;

- (void)dealloc{
    [super dealloc];
    [ivLeft release];
    [ivMiddle release];
    [ivRight release];
    [lblTitle release];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}


- (void)setView:(BOOL)isTitle datas:(NSMutableArray *)datas{
    if(isTitle){
        self.lblTitle.hidden = NO;
        self.ivLeft.hidden = YES;
        self.ivMiddle.hidden = YES;
        self.ivRight.hidden = YES;
        [self.lblTitle setText:@"9月17日"];
    }else{
        self.lblTitle.hidden = YES;
        self.ivLeft.hidden = NO;
        self.ivMiddle.hidden = NO;
        self.ivRight.hidden = NO;
        [self.ivLeft setImageWithURL:[NSURL URLWithString:[datas objectAtIndex:0]]];
        [self.ivMiddle setImageWithURL:[NSURL URLWithString:[datas objectAtIndex:1]]];
        [self.ivRight setImageWithURL:[NSURL URLWithString:[datas objectAtIndex:2]]];
        
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
